import './assets/main.css'
import Vant from 'vant'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import "vant/lib/index.css"
import App from './App.vue'
import router from './router'
import { useUserStore } from '@/stores/useUserStore'


const app = createApp(App)
const pinia = createPinia()

app.use(pinia)
app.use(router)
app.use(Vant)

app.mount('#app')

// 在应用启动时恢复用户登录状态
const userStore = useUserStore()
userStore.restoreFromLocalStorage()
